# import json
#
# dictObj = {
#     'andy': {
#         'age': 23,
#         'city': 'shanghai',
#         'skill': 'python'
#     },
#     'william': {
#         'age': 33,
#         'city': 'hangzhou',
#         'skill': 'js'
#     }
# }
#
# list=[]
# list.append(dictObj)
# print(list)
# list.append(dictObj)
# jsObj = json.dumps(list)
#
# fileObject = open('jsonFile.json', 'w')
# fileObject.write(jsObj)
# fileObject.close()